package com.mp.ipm2020.mbg.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mp.ipm2020.mbg.dao.DeviceDataDao;
import com.mp.ipm2020.mbg.model.Value;
import com.mp.ipm2020.mbg.mapper.ValueMapper;
import com.mp.ipm2020.mbg.service.ValueService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.web.config.QuerydslWebConfiguration;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author adidasshe
 * @since 2020-05-18
 */
@Service
public class ValueServiceImpl extends ServiceImpl<ValueMapper, Value> implements ValueService {
    @Autowired
    private DeviceDataDao deviceDataDao;

    @Override
    public Value getByDeviceId(String device_id) {

        return  deviceDataDao.getValueByDeviceID(device_id);
    }
}
